<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			// console.log(1)
			// Promise.resolve().then(()=>{
			// 	console.log(2)
			// 	Promise.resolve().then(()=>{
			// 		console.log(3)
			// 	})
			// })
			// setTimeout(()=>{
			// 	console.log(4)
			// })
			// Promise.resolve().then(()=>{
			// 	console.log(5)
			// })
			// console.log(6)
			setTimeout(function () {
			console.log(1);
			},0)
			new Promise(function execulor(resolve){
			    console.log(2)
			for(var i = 0；i<10000;i+=1){
			i ==9999 && resolve()
			}
			console.log(3)
			}).then(function(){
			console.log(4)
			})
			console.log(5)
		</script>
	</body>
</html>
